package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.RankApply;
import com.novax.ex.activity.infrastructure.entity.RankApplyUser;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/11/27/14:24
 */
 

public interface RankApplyMapper extends BaseMapper {

    /**
     * @param userId
     * @param rankId
     * @Description: 查询是否已报名
     * @Author: ChenXi
     * @Date: 2023/11/27 14:44
     * @return: java.lang.String
     **/
    RankApply queryApply(@Param("userId") Long userId, @Param("rankId") Long rankId);

    /**
     * @Description: 查询报名用户id list
     * @Author: ChenXi
     * @Date:  2023/12/13 19:12
     * @param rankId
     * @return: java.util.List<java.lang.Long>
     **/
    List<RankApplyUser> queryApplyUserIdList(Long rankId);

}